package com.zhou.sys.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色-机构
 * </p>
 *
 * @author zhou
 * @since 2017-10-01
 */
@TableName("sys_role_office")
public class RoleOffice extends Model<RoleOffice> {

    private static final long serialVersionUID = 1L;

    /**
     * 角色编号
     */
    @TableId("role_id")
	private String roleId;
    /**
     * 机构编号
     */
	@TableField("office_id")
	private String officeId;


	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getOfficeId() {
		return officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}

	@Override
	protected Serializable pkVal() {
		return this.roleId;
	}

	@Override
	public String toString() {
		return "RoleOffice{" +
			"roleId=" + roleId +
			", officeId=" + officeId +
			"}";
	}
}
